<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<textarea rows="0">1
2</textarea>
<textarea rows="1">1</textarea>
<textarea rows="5">1
2
3
4
5</textarea>
</body>
</html>